package com.usian.paymentdemo.service;

import com.usian.paymentdemo.entity.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.paymentdemo.enums.OrderStatus;

import java.util.List;

public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfo createOrderByProductId(Long productId);

    void saveCodeUrl(String orderNo, String codeUrl);

    List<OrderInfo> listOrderByCreateTimeDesc();

    OrderInfo getOrderInfoByNoId(String no);

    // 修改订单状态
    void updateStatusByOrderNo(String orderNo, OrderStatus orderStatus);

    List<OrderInfo> getNoPayOrderByDuration(int minutes);

}
